cc.Class({
    extends: cc.Component,
    properties: {
        labelScoreJia: {
            default: null,
            type: cc.Label
        },
        labelScoreJian: {
            default: null,
            type: cc.Label
        },
        spBg: {
            default: null,
            type: cc.Node
        }
    },
    onLoad: function () {
    },
    start: function () {
    },
    bindData: function (e) {
        if (1 == e.state) this.labelScoreJian.node.active = !1, this.labelScoreJia.node.active = !0,
            this.spBg.active = !0, this.labelScoreJia.string = "+" + e.score; else {
            this.labelScoreJia.node.active = !1, this.labelScoreJian.node.active = !0, this.spBg.active = !0;
            var t = "";
            0 == e.score && (t = "-"), this.labelScoreJian.string = t + e.score;
        }
    }
})
